GetSoundMediaBalance
TheGetSoundMediaBalance
function returns the balance of a sound media.
pascal HandlerError GetSoundMediaBalance (MediaHandler mh, short *balance);
mH
- Contains a reference to a media handler. You obtain this reference from the
GetMediaHandler
function, which is described on page 2-265.balance
- Contains a pointer to an integer. The Movie Toolbox returns the current balance setting of the media handler as a 16-bit, fixed-point value. The high-order 8 bits contain the integer part of the value; the low-order 8 bits contain the fractional part. Valid balance values range from -1.0 to 1.0. Negative values emphasize the left sound channel, and positive values emphasize the right sound channel; a value of 0 specifies neutral balance.
ERROR CODES
Component Manager errors